//
//  ZHCorrectVC.m
//  test02
//
//  Created by lzh on 2020/10/16.
//  Copyright © 2020 NO. All rights reserved.
//

#import "ZHCorrectVC.h"
#import "ZHCorrectView.h"
@interface ZHCorrectVC ()

@property (nonatomic,strong)ZHCorrectView * temp_view;
@end

@implementation ZHCorrectVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.view.backgroundColor = [UIColor whiteColor];
    ZHCorrectView * correct_view = [[ZHCorrectView alloc]initWithFrame:CGRectMake(0, 100, self.view.bounds.size.width, 300) image:[UIImage imageNamed:@"1"]];
    
    _temp_view = correct_view;
    
    [self.view addSubview:correct_view];
    
    
    UIButton * button = [UIButton buttonWithType:UIButtonTypeSystem];
       
       [button addTarget:self action:@selector(gotoCorrect) forControlEvents:UIControlEventTouchUpInside];
       
       button.frame = CGRectMake(100, self.view.bounds.size.height - 100, 100, 50);
       
       [button setTitle:@"correct" forState:UIControlStateNormal];
       
       [self.view addSubview:button];
}

-(void)gotoCorrect{
    
    [self.temp_view correct:^(bool reslut) {
        
    }];
}




@end
